package com.billing.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.UserWorkexperienceBeanMapper;
import com.billing.model.dao.UserWorkexperienceBufferBeanMapper;
import com.billing.model.entity.TUserWorkexperience;
import com.billing.model.entity.TUserWorkexperienceBuffer;
import com.billing.service.UserWorkexperienceBufferService;
import com.billing.service.UserWorkexperienceService;

@Service
public class UserWorkexperienceBufferServiceImpl implements UserWorkexperienceBufferService {
	@Resource
	private  UserWorkexperienceBufferBeanMapper userWorkexperienceCopyBeanMapper;
	public int insertTUserWorkexperience(TUserWorkexperienceBuffer userWorkexperience) {
		return userWorkexperienceCopyBeanMapper.insertTUserWorkexperience(userWorkexperience);
	}
	public TUserWorkexperienceBuffer selectUserWorkexperienceByUid(String userid) {
		return userWorkexperienceCopyBeanMapper.selectUserWorkexperienceByUid(userid);
	}
	public int updateUserWorkexperience(TUserWorkexperienceBuffer userWorkexperience) {
		return userWorkexperienceCopyBeanMapper.updateUserWorkexperience(userWorkexperience);
	}
	public TUserWorkexperienceBuffer selectUserWorkexperienceByid(String id) {
		return userWorkexperienceCopyBeanMapper.selectUserWorkexperienceByid(id);
	}
	@Override
	public int insertTUserWorkexperienceByMain(TUserWorkexperience userWorkexperience) {
		return userWorkexperienceCopyBeanMapper.insertTUserWorkexperienceByMain(userWorkexperience);
	}
	@Override
	public int updateUserWorkexperienceByMain(TUserWorkexperience userWorkexperience) {
		return userWorkexperienceCopyBeanMapper.updateUserWorkexperienceByMain(userWorkexperience);
	}

}
